package com.timguan.render.api.entity.cms;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by guankaiqiang on 2015/3/20.
 */
public class CMSData implements Serializable {
    /**  */
    private Long id;

    /**
     * 来源自datalist表id
     */
    private Integer listId;

    /**
     * 坑位内填充的固定属性,json数据,长度有限如果要填写html，使用ajax抓取另外一个页面并内嵌
     */
    private String propertyValue;

    /**
     * type为商品类型为了方便查询冗余property_value中的item_id字段
     */
    private Long itemId;

    /**
     * type为特卖，starttime为property_value中冗余的starttime字段
     */
    private Date starttime;

    /**
     * type为特卖,endtime为property_value中冗余的endtime字段
     */
    private Date    endtime;
    private Integer version;
    public Integer getVersion() {
        return version;
    }
    public void setVersion(Integer version) {
        this.version = version;
    }
    /**
     * 坑位在模块中的权重
     */
    private Integer weight;
    private Date    gmtCreate;
    private Date    gmtModified;
    private Integer isDelete;

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Integer getListId() {
        return listId;
    }
    public void setListId(Integer listId) {
        this.listId = listId;
    }
    @Override
    public String toString() {
        return "CMSData{" +
                "id=" + id +
                ", listId=" + listId +
                ", propertyValue='" + propertyValue + '\'' +
                ", itemId=" + itemId +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", version=" + version +
                ", weight=" + weight +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", isDelete=" + isDelete +
                '}';
    }
    public String getPropertyValue() {
        return propertyValue;
    }
    public void setPropertyValue(String propertyValue) {
        this.propertyValue = propertyValue;
    }
    public Long getItemId() {
        return itemId;
    }
    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }
    public Date getStarttime() {
        return starttime;
    }
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
    public Date getEndtime() {
        return endtime;
    }
    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }
    public Integer getWeight() {
        return weight;
    }
    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    public Date getGmtCreate() {
        return gmtCreate;
    }
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
    public Date getGmtModified() {
        return gmtModified;
    }
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
    public Integer getIsDelete() {
        return isDelete;
    }
    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

}
